var fileToPublish = "${flaPath}";

if(fl.fileExists(fileToPublish))
{
	fla = fl.openDocument(fileToPublish);	fla.exportPublishProfile("${profilePath}");
}
else
{
	error("FLA [" + fileToPublish + "] does not exist (exportProfile.jsfl)");
}
